适配新版 LLM 配置结构#147
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
Java 端已切换到新版 LLM 配置结构,Python RAG 端需要同步适配 provider-model-preset 设计,否则会出现用户配置读取异常、provider_type 无法路由、API Key 解密失败等问题。
关联 issue:Closes #146
主要改动
llm_provider_model、llm_system_preset,并同步瘦身后的llm_system_provider与新结构llm_user_config。user_id + capability + is_default + is_active读取llm_user_config生效配置,移除无能力维度的默认配置读取语义。api_base_url,不再访问旧字段custom_api_base_url、priority、timeout_ms、max_retries、stream_enabled、extra_config等。aliyun -> qwen、claude -> anthropic。scripts/db/init.sql、scripts/db/schema.sql、schema/ops 文档和相关单元/集成测试。.gitignore增加本地docker-compose.override.yml忽略规则。验证
已执行:
说明:
tests/integration/services/test_config_reader_integration.py已按新 schema 更新,但本地 MySQL 凭据拒绝连接,未能实际跑通该集成测试。